package com.leyou.service;

import com.baomidou.mybatisplus.extension.service.IService;

import com.leyou.common.vo.SpuItemAttrGroupVo;
import com.leyou.entity.SpecGroupEntity;

import java.util.List;
import java.util.Map;

/**
 * 规格参数的分组表，每个商品分类下有多个规格参数组
 *
 * @author Daifeng
 * @email 2661184062@qq.com
 * @date 2020-12-25 16:44:47
 */
public interface SpecGroupService extends IService<SpecGroupEntity> {

    List<SpecGroupEntity> listByCid(Long cid);

    boolean deleteSpec(Long id);

    /**
     * 根据分类id  获取属性分组及分组下的所有属性
     * @param cid
     * @return
     */
    List<SpuItemAttrGroupVo> getGroupAttrByCid(Long cid);
}

